<template>
    <svg class="ygg-icon" aria-hidden="true">
        <use :xlink:href="`#${icon}`"></use>
    </svg>
</template>

<script>
    export default {
        name: "ygg-icon",
        props: {
            icon: {type: String, require: true},
        },
    }
</script>

<style lang="scss">
    .ygg-icon {
        width: 1em;
        height: 1em;
        vertical-align: -0.15em;
        fill: currentColor;
        overflow: hidden;
    }
</style>